package it.softphone.cmc.server.security;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 
 * @author bsorrentino
 *
 */
@SuppressWarnings("serial")
public class MultiTenantAuthenticationToken extends UsernamePasswordToken {

	private String tenant ;
	


	public MultiTenantAuthenticationToken(String username, char[] password,
			boolean rememberMe, String host, String tenant) {
		super(username, password, rememberMe, host);
		setTenant( tenant );
	}

	public MultiTenantAuthenticationToken(String username, String password,
			boolean rememberMe, String host, String tenant) {
		super(username, password, rememberMe, host);
		setTenant( tenant );
	}

	public String getTenant() {
		return tenant;
	}

	public void setTenant(String tenant) {
		//if( tenant == null ) throw new IllegalArgumentException("tenant is null");
		this.tenant = tenant;
	}

}
